#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/6/11 13:53
# @Author : linjinting
# @Project : custom_protocol
# @File : test.py
# @Software: PyCharm


import sys
import datetime

def currentframe():
    try:
        raise Exception
    except:
        return sys.exc_info()[2].tb_frame.f_back


def get_cur_info():
    frame = sys._getframe()
    return frame.f_back


def test():
    num_list = list()
    for x in range(1, 101):
        count = 0
        for i in range(1, x + 1):
            if i * i > x:
                break
            if x % i == 0:
                if i * i == x:
                    count += 1
                    break
                count += 2
        if count % 2 != 0:
            num_list.append(x)
    return num_list


print(test())


def test2():
    num_list = list()
    for x in range(1, 101):
        for i in range(1, x + 1):
            if i * i == x:
                num_list.append(x)
                break
    return num_list


print(datetime.datetime.now())